package cn.blog.service.impl;

import cn.blog.dao.BlogTypeDao;
import cn.blog.entity.Blogtype;
import cn.blog.service.BlogTypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service("blogtypeService")
public class BlogTypeServiceImpl implements BlogTypeService {
    @Resource
    private BlogTypeDao blogTypeDao;

    public BlogTypeDao getBlogTypeDao() {
        return blogTypeDao;
    }

    public void setBlogTypeDao(BlogTypeDao blogTypeDao) {
        this.blogTypeDao = blogTypeDao;
    }

    @Override
    public List<Blogtype> countList() {
        return blogTypeDao.countList();
    }

    @Override
    public Blogtype findById(Integer id) {
        return blogTypeDao.findById(id);
    }

    @Override
    public List<Blogtype> list(Map<String, Object> paramMap) {
        return blogTypeDao.list(paramMap);
    }

    @Override
    public Long getTotal(Map<String, Object> paramMap) {
        return blogTypeDao.getTotal(paramMap);
    }

    @Override
    public Integer add(Blogtype blogtype) {
        return blogTypeDao.add(blogtype);
    }

    @Override
    public Integer delete(Integer id) {
        return blogTypeDao.delete(id);
    }

    @Override
    public Integer update(Blogtype blogtype) {
        return blogTypeDao.update(blogtype);
    }
}
